package com.shijie99.demo.controller;

import java.text.DateFormat;
import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 资源配置白名单系统控制器类
 * @author zhoucl 2015-09-09
 */
@Controller
@RequestMapping(value = "/main")
public class MainController {
	@RequestMapping(value = "/index", method = RequestMethod.GET)
	public String index() {
		System.out.println(DateFormat.getInstance().format(new Date(System.currentTimeMillis())));
		
		return "main/index";
	}
	
	@RequestMapping(value = "/welcome", method = RequestMethod.GET)
	public String welcome() {
		return "main/welcome";
	}
}
